<!DOCTYPE html>
<html lang="zh">

<head>
	<th:block th:include="include :: header('确认收款')" />
	<link href="../static/layui/css/layui.css" th:href="@{/layui/css/layui.css}" rel="stylesheet" />
	<link href="../static/layui/css/dropdown.css" th:href="@{/layui/css/dropdown.css}" rel="stylesheet" />
	<link href="../static/css/projectDetail.css" th:href="@{/css/projectDetail.css}" rel="stylesheet" />
</head>

<body class="fixed-sidebar full-height-layout gray-bg">
	<!-- 头部导航 链接 -->
	<div class="row border-bottom white-bg dashboard-header headerNav">
		<div class="col-sm-1 logo">
			<div class="icon hidden-xs">
				<i class="fa fa-file-powerpoint-o"></i>
			</div>
			<div class="progressBar">
				<i>20.00%</i>
				<!-- style和 aria-valuenow里的数字代表进度 -->
				<div class="layui-progress" style="height: 5px;">
					<div class="layui-progress-bar " lay-percent="20.00%" style="width: 20%;"></div>
				</div>
			</div>
		</div>
		<div class="col-sm-11 navBar">
			<th:block th:include="include :: projectNavBar" />
		</div>
	</div>
		
	<!-- 主体部分 -->
	<div class="wrapper wrapper-content">
		<!-- 项目信息 -->
		<div class="row"> 
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="col-sm-12">
						<table class="infoTable">
							<tbody>
								<tr>
									<td class="title">项目合同金额</td>
									<td th:text="${zongje}">&nbsp;</td>
									<td class="title">合同完成阶段</td>
									<td th:text="${phase}">&nbsp;</td>
									<td class="title">应收费用</td>
									<td th:text="${yingshoujine}">&nbsp;</td>
									<td class="title">已收费用</td>
									<td th:text="${yishoujine}">&nbsp;</td>
									<td class="title">收款比例</td>
									<td th:text="${skbl}">&nbsp;</td>
								</tr>
								<tr>
									<td class="title">提示信息</td>
									<td th:text="${tip}">&nbsp;</td>
								</tr>
							</tbody>
						</table>
					</div>

<!-- 					<div class="col-sm-3 buttonBox"> -->
<!-- 						<button class="btn btn-primary"><i class="fa fa-pencil-square-o"></i> 编辑</button> -->
<!-- 						<button class="btn btn-success"><i class="fa fa-gear"></i> 设置</button> -->
<!-- 					</div> -->
				</div>
			</div>
		</div>
		<div class="btn-group-sm" id="toolbar" role="group">
           	<a class="btn btn-warning" onclick="$.table.exportExcel()" >
            	<i class="fa fa-download"></i> 导出
           	</a>
        </div>
		<div class="col-sm-12 select-table table-striped">
            <table id="bootstrap-table"></table>
        </div>
	</div>
	<!-- import layui -->
	<th:block th:include="include :: footer" />
	<script th:src="@{/layui/dropdown.js?v=20250801}"></script>
	<th:block th:include="include :: projectDetail" />
	<!-- import layui -->
	<script th:inline="javascript">
	    var removeFlag = [[${@permission.hasPermi('gcgl:sqkp:remove')}]];
	    var types = [[${@dict.getType('sj_nsct_type')}]];
	    var fps = [[${@dict.getType('gcgl_project_fp')}]];
		var statuss = [[${@dict.getType('sj_contract_status')}]];
	    var prefix = ctx + "gcgl/qrsk";
        
        $(function() {
            var options = {
                url: prefix + "/p4list",
                exportUrl: prefix + "/export",
                modalName: "开票申请",
//                 pagination: false,
		        showSearch: false,
                showRefresh: false,
                showToggle: false,
                showColumns: false,
                sortName: "id desc",
                sortOrder: "",
                queryParams: queryParams,
                columns: [{
                    checkbox: true
                },
                {
	                field: 'id',
	                title: '主键',
	                visible: false
	            },
	            {
	                field: 'gcProjectid',
	                title: '合同ID',
	                visible: false
	            },
	            {
	                field: 'sqkpId',
	                title: '申请开票ID'
	            },
	            {
	                field: 'projectName',
	                title: '项目名称'
	            },
	            {
	                field: 'htje',
	                title: '合同金额'
	            },
	            {
	                field: 'type',
	                title: '类型'
	            },
	            {
	                field: 'bcsqkpje',
	                title: '本次申请开票金额'
	            },
	            {
	                field: 'qrjine',
	                title: '确认收款金额'
	            },
	            {
	                field: 'skAt',
	                title: '收款时间'
	            },
	            {
	                field: 'fkdw',
	                title: '付款单位'
	            },
	            {
	                field: 'fkyh',
	                title: '付款银行'
	            },
	            {
	                field: 'skdw',
	                title: '收款单位'
	            },
	            {
	                field: 'skyh',
	                title: '收款银行'
	            },
	            {
	                field: 'dept',
	                title: '归属所'
	            },
	            {
	                field: 'memo',
	                title: '备注'
	            },
                {
                    title: '操作',
                    align: 'center',
                    formatter: function(value, row, index) {
                        var actions = [];
                        actions.push('<a class="btn btn-success btn-xs" href="javascript:void(0)" onclick="sqkpprint(\'' + row.id + '\')"><i class="fa fa-edit"></i>查看</a> ');
                        return actions.join('');
                    }
                }]
            };
            $.table.init(options);
        });
        
        function queryParams(params){
        	var search = $.table.queryParams(params);
        	search.gcProjectid = $("#id").val();
        	return search;
        }
        
    </script>
    <!--选中导航 这段js放在每个页面末尾-->
    <script>
		$(()=>{
			setTimeout(()=>{
				selectedNav(10)//第N个被选中 0即
			},100)
		})
		
		function selectedNav(index){
			$('ul.layui-nav').find('.layui-nav-item').eq(index).addClass('layui-this');
		}
	</script>
</body>
</html>